package com.freestyle.multidatasource;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * Created by rocklee on 2020/8/27 9:59
 */
public class MultiDataSource extends AbstractRoutingDataSource {
  public Object determineCurrentLookupKey() {
    return DataSourceContextHolder.getDataSource();
  }
}